using System.Xml.Linq;

namespace time
{
    public class work_XDocument
    {
        public static void Main()
        {
            string path = @"1.xml";
            XDocument xdoc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"),

                                           new XElement("Root", "root"));

            xdoc.Save(path);
        }
    }
}